In-reply-to: Message from Jerry Sweet <agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!sample.eng.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!news!shrike.irvine.com!jsweet@ucbvax.berkeley.edu>
of "22 Sep 92 21:32:46 +0000." <Bv016M.J7t@irvine.com>
Message-ID: <545.717349434@rubble>
> 1. A facility whereby the output of a program invocation can be
> placed into message headers, possibly via an escape
> sequence in a comp/repl/forw components template and/or
> an mhl template. Sort of like shell back-ticks. This
> would allow me to call programs that print various kinds of
> information, such as the current folder name, for inclusion
> in a header component.
That was an interesting problem. I hacked up a "nawk" editor script
that does what you want, I think. I always like to post stuff like this
to the list so other people can see the technique and comment on it...
but I decided to send it to you privately to see if it's what you're
thinking of. (BTW, when your message got to the mh-users mailing list
from USENET, there was no reply-able address on it. I added yours by
hand, but I wonder if anyone else is having trouble answering you?)
Anyway, you run this script from your MH profile. It's a front-end
that calls prompter after it's edited your message:
comp: -editor bipp
repl: -editor bipp
forw: -editor bipp
Here's a sample "components" file:
To:
Cc:
Fcc: `folder -fast`
X-local-time: `date`
Subject:
-----------
This should not be expanded: `date`
And here's a test run. I typed in the "To:" and "Subject:" from the